package com.htwz.webapp

import android.app.Application
import android.util.Log
import com.tencent.bugly.crashreport.CrashReport
import com.tencent.smtt.sdk.QbSdk
import com.tencent.smtt.sdk.TbsListener

/**
 *@des:
 *@author: created by yk
 *@date: 2020/6/16
 */
class WebApp: Application() {

    override fun onCreate() {
        super.onCreate()

        CrashReport.initCrashReport(applicationContext, "b87ca5d344", true)

        QbSdk.initX5Environment(this, object : QbSdk.PreInitCallback{
            override fun onCoreInitFinished() {
                Log.e("this","===onCoreInitFinished===")
            }

            override fun onViewInitFinished(p0: Boolean) {

                Log.e("this","===onViewInitFinished==="+p0)
            }
        })
    }

}